package Practica;

public abstract class Animal {

    protected boolean wings;
    protected boolean legs;
        
    protected Animal() {
    }
    
    protected Animal(boolean wings, boolean legs){
        
        this.wings = wings;
        this.legs = legs;
        
    }
    
    protected abstract void hair();
    
    protected abstract void eat();
    
    protected void sound(){
        
        System.out.println("The Animal makes a sound");

    }
    
     public String toString(){
        
        return "Has legs: "+legs+" ||| wings: "+wings;
         
    }
   
    
}
